<?php
/*************************************************************************************
 *
 *	FileName: /edp/tpl/common/html_header.php
 *	Desc    : Common header file for pages
 *	Author  : Seal
 *	Date    : 2009-10-8
 *
 *************************************************************************************/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="keywords" content="<?php echo $shop['shop_name']." "; if( isset($pageTitleMap[$page_base]['keywords']) ) echo $pageTitleMap[$page_base]['keywords']; else echo $pageTitleMap['index']['keywords'];?>" />
		<meta name="description" content="<?php echo $shop['shop_name'];?> 商品列表 推荐商品" />
		<meta http-equiv="imagetoolbar" content="no" />
		<title><?php echo $shop['shop_name']." ";if( isset($pageTitleMap[$page_base]['title']) ) echo $pageTitleMap[$page_base]['title']; if($page_base!='index') echo '_花开里'?></title>
		<link rel="shortcut icon" href="http://static.huakaili.com/image/favicon.ico" type="image/x-icon"> 

<?php

/**********************************************************
 *
 * Load all the css files
 *
 **********************************************************/    
   echo '<link rel="stylesheet" type="text/css" href="' . CSS_DIR . 'global.css.php?v=' . EDPGetResourceVersion( 'global.css.php', 'css' ) . '" />'."\n";
    
    if( file_exists( STATIC_DIR . 'css/' . $page_base . '.css.php' ) )
    	echo '<link rel="stylesheet" type="text/css" href="' . CSS_DIR . $page_base . '.css.php?v=' .  EDPGetResourceVersion( $page_base . '.css.php', 'css' ) . '" />' . "\n";
    else if( file_exists( STATIC_DIR . 'css/' . $page_base . '.css' ) )
        echo '<link rel="stylesheet" type="text/css" href="' . CSS_DIR . $page_base . '.css?v=' . EDPGetResourceVersion( $page_base . '.css', 'css' ) .'" />' . "\n";

?>	


	</head>
<?php // NOTE: Blank line following is intended: ?>
